using System;
using System.ComponentModel;
using System.Linq;

using Newtonsoft.Json;
using Newtonsoft.Json.Linq;

namespace ApiTest2.Entitys
{
    /// <summary>
    /// 系统角色
    /// </summary>  
    /// <remarks>
    /// <![CDATA[ENGINE=InnoDB  COMMENT='系统角色']]>
    /// </remarks>
    [DbSource("Default"), Serializable]
    public class SysRole
    {
        /// <summary>
        /// role_id
        /// </summary>
        /// <remarks>
        /// <![CDATA[int NOT NULL COMMENT '']]>
        /// </remarks>
        [Primary(Automatic = true)]
        public int RoleId { get; set; }

        /// <summary>
        /// 角色名称
        /// </summary>
        /// <remarks>
        /// <![CDATA[varchar(31) NOT NULL COMMENT '角色名称']]>
        /// </remarks>
        [Column(31, false)]
        [DisplayName("角色名称")]
        public string RoleName { get; set; }

        /// <summary>
        /// 角色代号
        /// </summary>
        /// <remarks>
        /// <![CDATA[varchar(31) DEFAULT NULL COMMENT '角色代号']]>
        /// </remarks>
        [Column(31)]
        [DisplayName("角色代号")]
        public string RoleCode { get; set; }

        /// <summary>
        /// description
        /// </summary>
        /// <remarks>
        /// <![CDATA[varchar(255) DEFAULT NULL COMMENT '']]>
        /// </remarks>
        [Column(255)]
        public string Description { get; set; }

        /// <summary>
        /// sort
        /// </summary>
        /// <remarks>
        /// <![CDATA[int NOT NULL COMMENT '']]>
        /// </remarks>
        [Column(false)]
        public int Sort { get; set; }

        /// <summary>
        /// is_del
        /// </summary>
        /// <remarks>
        /// <![CDATA[bit(1) NOT NULL COMMENT '']]>
        /// </remarks>
        [Column(1, false)]
        public bool IsDel { get; set; }

    }
}
